<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Error 404 - Page Not Found</title>
    <style>
        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
        }
    </style>
    <script type="text/javascript" th:src="@{/js/baiduhm.js}" ></script>

</head>
<body>

<div style="width: 600px;margin: 0 auto;">
<h1>如果您看见该页，可能有以下几个原因：</h1>
<p>1.您访问的站点出错</p>
<p>2.页面已经被移走</p>
<p>3.您请求的页面不存在</p>
<p id="countdown"></p>
</div>
<script>
    var seconds = 5;
    var countdownElement = document.getElementById("countdown");

    function updateCountdown() {
        countdownElement.innerHTML = "页面将在 " + seconds + " 秒后跳转到首页";
        if (seconds === 0) {
            window.location.href = "/";
        } else {
            seconds--;
            setTimeout(updateCountdown, 1000);
        }
    }

    updateCountdown();
</script>
</body>
</html>
